package com.atguigu.jxc.service;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import com.atguigu.jxc.entity.SaleCount;

import java.util.List;

public interface CustomerReturnListGoodsService {
    /**
     * 客户退货单查询（可查询条件：退货单号、客户、退款状态）
     * @param returnNumber
     * @param customerId
     * @param state
     * @param sTime
     * @param eTime
     * @return
     */
    List<CustomerReturnList> list(String returnNumber, Integer customerId, Integer state, String sTime, String eTime);

    /**
     * 退货单商品信息
     * @param customerReturnListId
     * @return
     */
    List<CustomerReturnListGoods> goodList(Integer customerReturnListId);

    /**
     * 删除退货单
     * @param customerReturnListId
     */
    void delete(Integer customerReturnListId);

    /**
     * 客户退货统计
     * @param sTime
     * @param eTime
     * @param goodsTypeId
     * @param codeOrName
     * @return
     */
    List<SaleCount> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
